package com.pw.study.function

import scala.Unit

object MyFunction1 {

  def hello(n:Int)(opt: =>Unit):Unit={
    if(n>5){
      opt
    }else{
      println("你输入的次数有点问题。。。。。。。")
    }
  }

  def main(args: Array[String]): Unit = {
    hello(1){
      println("====================")
    }
  }

}
